<!DOCTYPE html>
<html lang="en">
	<head>
		<title> New Document </title>
		<meta charset="utf-8">
		<meta name="Author" content="">
		<meta name="Keywords" content="">
		<meta name="Description" content="">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<!-- Bootstrap -->
		<link href="${webRoot}/resources/css/bootstrap.min.css" rel="stylesheet" media="screen">
		<link href="${webRoot}/resources/css/style.css" rel="stylesheet">
		<script src="http://code.jquery.com/jquery-1.10.0.min.js"></script>
		<script src="${webRoot}/resources/js/bootstrap.min.js"></script>
		<script src="${webRoot}/resources/js/js.js"></script>
	</head>
		<div>
			<table class="table table-bordered table-striped table-hover">
				<thead>
					<tr>
						<th>订单号</th>
						<th>订单名称</th>
						<th>单价</th>
						<th>总金额</th>
						<th>下单时间</th>
						<th>支付状态</th>
						<th>订单状态</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
				<#if listOrder?exists>
				<#list listOrder as orderEntity>
					<tr>
						<td>${orderEntity.order_no}</td>
						<td>${orderEntity.group_name}</td>
						<td>${orderEntity.groupprice}</td>
						<td>${orderEntity.order_price}</td>
						<td>${orderEntity.order_date?string("yyyy-MM-dd")}</td>
						<#if orderEntity.order_statu == "Y">
						<td>已付款</td>
						<#else>
						<td>未付款</td>
						</#if>
						<#if orderEntity.order_result == "N1">
						<td>等待付款</td>
						<#elseif orderEntity.order_result == "D1">
						<td>已退单</td>
						<#elseif orderEntity.order_result == "D2">
						<td>已退单，未退款</td>
						<#elseif orderEntity.order_result == "D3">
						<td>已退单，已退款</td>
						<#else>
						<td>交易完成</td>
						</#if>
						<td><a href="javascript:getOrderInfo(${orderEntity.order_id},${orderEntity.group_id},${orderEntity.member_id});">详情</a></td>
					</tr>
				 </#list>
				 <#else>
				   	 <tr>
				       <td colspan="8">没有查询到记录！</td>
				   </tr>
				</#if>
				</tbody>
			</table>			
		</div>
		<#if listOrder?exists>
		<div class="pagination pagination-right">
		<input type="hidden" name="serchOrderNo" id="serchOrderNo" value="${serchOrderNo}"/>
		  <input type="hidden" name="serchStatus" id="serchStatus" value="${serchStatus}"/>
		  <input type="hidden" name="serchResult" id="serchResult" value="${serchResult}"/>
		  <ul>
		    <#if pageEntity.page==1>
		    <li class="disabled"><a href="#">&laquo;</a></li>
		    <#else>
		    <li><a href="javascript:pageHref(${pageEntity.page-1},${pageEntity.totalPage},${pageEntity.pageSize})">&laquo;</a></li>
		    </#if>
		    <#list 1..pageEntity.totalPage as i>
		         <#if pageEntity.page==i>
		    <li class="active"><a href="#">${i}</a></li>
		         <#else>
		    <li><a href="javascript:pageHref(${i},${pageEntity.totalPage},${pageEntity.pageSize})">${i}</a></li>
		        </#if>
		    </#list>
		   <#if pageEntity.page==pageEntity.totalPage>
		    <li class="disabled"><a href="#">»</a></li>
		    <#else>
		    <li><a href="javascript:pageHref(${pageEntity.page+1},${pageEntity.totalPage},${pageEntity.pageSize})">»</a></li>
		    </#if>
		  </ul>
		</div>
		</#if>
</html>
